

OUTPUT TO c:\tr.txt .

FOR EACH wo_mstr NO-LOCK WHERE wo_nbr BEGINS "WB" AND (wo_nbr MATCHES("WB*W*") OR wo_vend <> "") 
    AND (wo_rel_date >= DATE(4,1,2005) AND wo_rel_date <= DATE(3,31,2006)),
    EACH tr_ NO-LOCK WHERE tr_nbr = wo_nbr AND tr_type = "rct-wo" ,
    EACH pt_ NO-LOCK WHERE pt_part = wo_part WITH STREAM-IO WIDTH 180 :
    DISP wo_nbr wo_part tr_qty_loc tr_mtl_std pt_desc1 + pt_desc2 FORMAT "x(80)" .
END.
